extends Node2D

@onready var brick_1 = $RigidBody2D
@onready var brick_2 = $RigidBody2D2
@onready var brick_3 = $RigidBody2D3
@onready var brick_4 = $RigidBody2D4


const HIGHER_IMPULSE := Vector2(60, 350)
const LOWER_IMPULSE := Vector2(60, 250)

# Called when the node enters the scene tree for the first time.
func _ready():
	brick_1.apply_central_impulse(Vector2(-HIGHER_IMPULSE.x, -HIGHER_IMPULSE.y))
	brick_2.apply_central_impulse(Vector2(HIGHER_IMPULSE.x, -HIGHER_IMPULSE.y))
	brick_3.apply_central_impulse(Vector2(-LOWER_IMPULSE.x, -LOWER_IMPULSE.y))
	brick_4.apply_central_impulse(Vector2(LOWER_IMPULSE.x, -LOWER_IMPULSE.y))
	await get_tree().create_timer(1, false).timeout
	queue_free()
